package jw.repository.order;


import jw.model.order.WxShoppingCart;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface WxShoppingCartRepository extends JpaRepository<WxShoppingCart,Integer>, JpaSpecificationExecutor<WxShoppingCart> {

    List<WxShoppingCart>findByAgentId(Integer agentId);

    WxShoppingCart findByAgentIdAndSku(Integer agentId,String sku);

}
